local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1
L0_1 = {}
L0_1.group_id = 133002286
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 2393
L2_1.gadget_id = 70300109
L3_1 = {}
L3_1.x = 1718.812
L3_1.y = 205.825
L3_1.z = -471.992
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 233.703
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 10
L2_1.area_id = 3
L3_1 = {}
L3_1.config_id = 2394
L3_1.gadget_id = 70210102
L4_1 = {}
L4_1.x = 1725.293
L4_1.y = 208.589
L4_1.z = -494.593
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 6
L3_1.chest_drop_id = 1000100
L3_1.drop_count = 1
L3_1.area_id = 3
L4_1 = {}
L4_1.config_id = 2395
L4_1.gadget_id = 70300109
L5_1 = {}
L5_1.x = 1720.555
L5_1.y = 207.491
L5_1.z = -491.103
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 143.489
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 10
L4_1.area_id = 3
L5_1 = {}
L5_1.config_id = 2396
L5_1.gadget_id = 70300109
L6_1 = {}
L6_1.x = 1705.736
L6_1.y = 205.125
L6_1.z = -470.426
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 291.666
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 10
L5_1.area_id = 3
L6_1 = {}
L6_1.config_id = 2397
L6_1.gadget_id = 70210102
L7_1 = {}
L7_1.x = 1696.375
L7_1.y = 205.001
L7_1.z = -455.414
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 6
L6_1.chest_drop_id = 1000100
L6_1.drop_count = 1
L6_1.area_id = 3
L7_1 = {}
L7_1.config_id = 2398
L7_1.gadget_id = 70300109
L8_1 = {}
L8_1.x = 1687.817
L8_1.y = 202.752
L8_1.z = -475.117
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 306.372
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 10
L7_1.area_id = 3
L8_1 = {}
L8_1.config_id = 2399
L8_1.gadget_id = 70300109
L9_1 = {}
L9_1.x = 1674.247
L9_1.y = 201.895
L9_1.z = -461.292
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 322.398
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 10
L8_1.area_id = 3
L9_1 = {}
L9_1.config_id = 2401
L9_1.gadget_id = 70210102
L10_1 = {}
L10_1.x = 1699.897
L10_1.y = 204.594
L10_1.z = -467.754
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 6
L9_1.chest_drop_id = 1000100
L9_1.drop_count = 1
L9_1.area_id = 3
L10_1 = {}
L10_1.config_id = 2402
L10_1.gadget_id = 70210102
L11_1 = {}
L11_1.x = 1696.202
L11_1.y = 204.902
L11_1.z = -455.882
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 6
L10_1.chest_drop_id = 1000200
L10_1.drop_count = 1
L10_1.area_id = 3
L11_1 = {}
L11_1.config_id = 2403
L11_1.gadget_id = 70210102
L12_1 = {}
L12_1.x = 1700.485
L12_1.y = 204.624
L12_1.z = -467.665
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 0.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 6
L11_1.chest_drop_id = 1000200
L11_1.drop_count = 1
L11_1.area_id = 3
L12_1 = {}
L12_1.config_id = 2404
L12_1.gadget_id = 70220026
L13_1 = {}
L13_1.x = 1796.542
L13_1.y = 218.294
L13_1.z = -379.223
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 0.0
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 10
L12_1.area_id = 3
L13_1 = {}
L13_1.config_id = 2405
L13_1.gadget_id = 70220026
L14_1 = {}
L14_1.x = 1772.509
L14_1.y = 213.177
L14_1.z = -340.716
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 0.0
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 10
L13_1.area_id = 3
L14_1 = {}
L14_1.config_id = 2406
L14_1.gadget_id = 70300109
L15_1 = {}
L15_1.x = 1660.421
L15_1.y = 201.895
L15_1.z = -439.501
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 11.667
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 10
L14_1.area_id = 3
L15_1 = {}
L15_1.config_id = 2407
L15_1.gadget_id = 70300109
L16_1 = {}
L16_1.x = 1720.301
L16_1.y = 206.197
L16_1.z = -464.232
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 187.307
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 10
L15_1.area_id = 3
L16_1 = {}
L16_1.config_id = 2408
L16_1.gadget_id = 70300109
L17_1 = {}
L17_1.x = 1701.888
L17_1.y = 205.307
L17_1.z = -452.926
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 237.868
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 10
L16_1.area_id = 3
L17_1 = {}
L17_1.config_id = 2446
L17_1.gadget_id = 70300109
L18_1 = {}
L18_1.x = 1669.81
L18_1.y = 202.449
L18_1.z = -431.493
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 81.589
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 10
L17_1.area_id = 3
L18_1 = {}
L18_1.config_id = 2479
L18_1.gadget_id = 70300109
L19_1 = {}
L19_1.x = 1711.105
L19_1.y = 206.303
L19_1.z = -452.793
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 257.564
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 10
L18_1.area_id = 3
L19_1 = {}
L19_1.config_id = 286001
L19_1.gadget_id = 70300109
L20_1 = {}
L20_1.x = 1720.971
L20_1.y = 210.032
L20_1.z = -448.457
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 350.873
L20_1.y = 238.988
L20_1.z = 340.708
L19_1.rot = L20_1
L19_1.level = 10
L19_1.area_id = 3
L20_1 = {}
L20_1.config_id = 286002
L20_1.gadget_id = 70300109
L21_1 = {}
L21_1.x = 1734.647
L21_1.y = 213.988
L21_1.z = -445.841
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 350.873
L21_1.y = 260.243
L21_1.z = 340.708
L20_1.rot = L21_1
L20_1.level = 10
L20_1.area_id = 3
L21_1 = {}
L21_1.config_id = 286003
L21_1.gadget_id = 70300109
L22_1 = {}
L22_1.x = 1748.733
L22_1.y = 216.312
L22_1.z = -443.774
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 350.873
L22_1.y = 260.243
L22_1.z = 340.708
L21_1.rot = L22_1
L21_1.level = 10
L21_1.area_id = 3
L22_1 = {}
L22_1.config_id = 286004
L22_1.gadget_id = 70300109
L23_1 = {}
L23_1.x = 1761.272
L23_1.y = 217.601
L23_1.z = -444.449
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 350.873
L23_1.y = 260.243
L23_1.z = 340.708
L22_1.rot = L23_1
L22_1.level = 10
L22_1.area_id = 3
L23_1 = {}
L23_1.config_id = 286005
L23_1.gadget_id = 70300109
L24_1 = {}
L24_1.x = 1772.497
L24_1.y = 217.701
L24_1.z = -444.298
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 350.873
L24_1.y = 260.243
L24_1.z = 340.708
L23_1.rot = L24_1
L23_1.level = 10
L23_1.area_id = 3
L24_1 = {}
L24_1.config_id = 286006
L24_1.gadget_id = 70300109
L25_1 = {}
L25_1.x = 1780.906
L25_1.y = 217.772
L25_1.z = -442.225
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 350.873
L25_1.y = 260.243
L25_1.z = 340.708
L24_1.rot = L25_1
L24_1.level = 10
L24_1.area_id = 3
L25_1 = {}
L25_1.config_id = 286007
L25_1.gadget_id = 70300109
L26_1 = {}
L26_1.x = 1788.573
L26_1.y = 217.415
L26_1.z = -442.616
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 350.873
L26_1.y = 260.243
L26_1.z = 340.708
L25_1.rot = L26_1
L25_1.level = 10
L25_1.area_id = 3
L26_1 = {}
L26_1.config_id = 286008
L26_1.gadget_id = 70300109
L27_1 = {}
L27_1.x = 1714.541
L27_1.y = 205.512
L27_1.z = -475.862
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 168.468
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 10
L26_1.area_id = 3
L27_1 = {}
L27_1.config_id = 286009
L27_1.gadget_id = 70300109
L28_1 = {}
L28_1.x = 1717.638
L28_1.y = 206.228
L28_1.z = -483.805
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 168.931
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 10
L27_1.area_id = 3
L28_1 = {}
L28_1.config_id = 286010
L28_1.gadget_id = 70300109
L29_1 = {}
L29_1.x = 1716.601
L29_1.y = 207.599
L29_1.z = -451.911
L28_1.pos = L29_1
L29_1 = {}
L29_1.x = 0.0
L29_1.y = 188.149
L29_1.z = 0.0
L28_1.rot = L29_1
L28_1.level = 10
L28_1.area_id = 3
L29_1 = {}
L29_1.config_id = 286011
L29_1.gadget_id = 70300109
L30_1 = {}
L30_1.x = 1716.713
L30_1.y = 206.652
L30_1.z = -457.824
L29_1.pos = L30_1
L30_1 = {}
L30_1.x = 0.0
L30_1.y = 148.285
L30_1.z = 0.0
L29_1.rot = L30_1
L29_1.level = 10
L29_1.area_id = 3
L30_1 = {}
L30_1.config_id = 286012
L30_1.gadget_id = 70300109
L31_1 = {}
L31_1.x = 1713.778
L31_1.y = 205.505
L31_1.z = -472.229
L30_1.pos = L31_1
L31_1 = {}
L31_1.x = 0.0
L31_1.y = 281.346
L31_1.z = 0.0
L30_1.rot = L31_1
L30_1.level = 10
L30_1.area_id = 3
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
L1_1[16] = L17_1
L1_1[17] = L18_1
L1_1[18] = L19_1
L1_1[19] = L20_1
L1_1[20] = L21_1
L1_1[21] = L22_1
L1_1[22] = L23_1
L1_1[23] = L24_1
L1_1[24] = L25_1
L1_1[25] = L26_1
L1_1[26] = L27_1
L1_1[27] = L28_1
L1_1[28] = L29_1
L1_1[29] = L30_1
gadgets = L1_1
L1_1 = {}
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1000387
L2_1.name = "GADGET_STATE_CHANGE_387"
L3_1 = EventType
L3_1 = L3_1.EVENT_GADGET_STATE_CHANGE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_387"
L2_1.action = "action_EVENT_GADGET_STATE_CHANGE_387"
L2_1.trigger_count = 0
L3_1 = {}
L3_1.config_id = 1000388
L3_1.name = "GADGET_STATE_CHANGE_388"
L4_1 = EventType
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_388"
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_388"
L4_1 = {}
L4_1.config_id = 1000389
L4_1.name = "GADGET_STATE_CHANGE_389"
L5_1 = EventType
L5_1 = L5_1.EVENT_GADGET_STATE_CHANGE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_389"
L4_1.action = "action_EVENT_GADGET_STATE_CHANGE_389"
L5_1 = {}
L5_1.config_id = 1000390
L5_1.name = "GADGET_STATE_CHANGE_390"
L6_1 = EventType
L6_1 = L6_1.EVENT_GADGET_STATE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_390"
L5_1.action = "action_EVENT_GADGET_STATE_CHANGE_390"
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L2_1.gadgets = L3_1
L3_1 = {}
L2_1.regions = L3_1
L3_1 = {}
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 2393
L6_1 = 2394
L7_1 = 2395
L8_1 = 2396
L9_1 = 2401
L10_1 = 2402
L11_1 = 2404
L12_1 = 2405
L13_1 = 2407
L14_1 = 2408
L15_1 = 2479
L16_1 = 286001
L17_1 = 286002
L18_1 = 286003
L19_1 = 286004
L20_1 = 286005
L21_1 = 286006
L22_1 = 286007
L23_1 = 286008
L24_1 = 286009
L25_1 = 286010
L26_1 = 286011
L27_1 = 286012
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L4_1[8] = L12_1
L4_1[9] = L13_1
L4_1[10] = L14_1
L4_1[11] = L15_1
L4_1[12] = L16_1
L4_1[13] = L17_1
L4_1[14] = L18_1
L4_1[15] = L19_1
L4_1[16] = L20_1
L4_1[17] = L21_1
L4_1[18] = L22_1
L4_1[19] = L23_1
L4_1[20] = L24_1
L4_1[21] = L25_1
L4_1[22] = L26_1
L4_1[23] = L27_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "GADGET_STATE_CHANGE_387"
L6_1 = "GADGET_STATE_CHANGE_388"
L7_1 = "GADGET_STATE_CHANGE_389"
L8_1 = "GADGET_STATE_CHANGE_390"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 2393
L7_1 = 2394
L8_1 = 2395
L9_1 = 2396
L10_1 = 2397
L11_1 = 2403
L12_1 = 2404
L13_1 = 2405
L14_1 = 2407
L15_1 = 2408
L16_1 = 2479
L17_1 = 286001
L18_1 = 286002
L19_1 = 286003
L20_1 = 286004
L21_1 = 286005
L22_1 = 286006
L23_1 = 286007
L24_1 = 286008
L25_1 = 286009
L26_1 = 286010
L27_1 = 286011
L28_1 = 286012
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_1
L5_1[10] = L15_1
L5_1[11] = L16_1
L5_1[12] = L17_1
L5_1[13] = L18_1
L5_1[14] = L19_1
L5_1[15] = L20_1
L5_1[16] = L21_1
L5_1[17] = L22_1
L5_1[18] = L23_1
L5_1[19] = L24_1
L5_1[20] = L25_1
L5_1[21] = L26_1
L5_1[22] = L27_1
L5_1[23] = L28_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "GADGET_STATE_CHANGE_387"
L7_1 = "GADGET_STATE_CHANGE_388"
L8_1 = "GADGET_STATE_CHANGE_389"
L9_1 = "GADGET_STATE_CHANGE_390"
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 2394 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      L2_2 = true
      return L2_2
    end
  end
  L2_2 = A1_2.param2
  if 2401 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      L2_2 = true
      return L2_2
    end
  end
  L2_2 = A1_2.param2
  if 2397 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      L2_2 = true
      return L2_2
    end
  end
  L2_2 = false
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_387 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.ShowReminder
  L3_2 = A0_2
  L4_2 = 1110004
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : active_reminder_ui"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_387 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 2394 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_388 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillGroupEntity
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133002286
  L5_2 = {}
  L4_2.monsters = L5_2
  L5_2 = {}
  L6_2 = 2395
  L7_2 = 2480
  L5_2[1] = L6_2
  L5_2[2] = L7_2
  L4_2.gadgets = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_388 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 2401 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_389 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillGroupEntity
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133002286
  L5_2 = {}
  L4_2.monsters = L5_2
  L5_2 = {}
  L6_2 = 2396
  L5_2[1] = L6_2
  L4_2.gadgets = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_389 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 2397 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.ChestOpened
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_390 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillGroupEntity
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133002286
  L5_2 = {}
  L4_2.monsters = L5_2
  L5_2 = {}
  L6_2 = 2408
  L5_2[1] = L6_2
  L4_2.gadgets = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_390 = L1_1
